<div class="sf-form-gui">
    <div class="formulaire form-wrapper">
        <h2>
            <?php echo $sf_form_gui->getName(); ?>
        </h2>
        <p class="description">
            <?php echo $sf_form_gui->getDescription(); ?>
        </p>
        <form action="<?php echo url_for('sfFormGui/show?id='.$sf_form_gui->getId()); ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
            <input type="hidden" name="id" value="<?php echo $sf_form_gui->getPrimaryKey(); ?>" />
            <input type="hidden" name="page" value="<?php echo $page; ?>" />
            <?php echo $form->renderGlobalErrors(); ?>
            <?php foreach($sf_form_gui->getSfFormGuiQuestionsOrdered() as $question): ?>
                <?php echo $form[$question->getId()]->renderLabel($question->getName() .($question->getRequired() ? ' *': '')) ?>
                <?php echo $form[$question->getId()]->render(array(
                    'value' => $question->getResponseQuestion($sf_form_gui->getResponse($session_id))->getValue(),
                    'responseQuestion_id' => $question->getResponseQuestion($sf_form_gui->getResponse($session_id))->getId()
                )) ?>
                <?php echo $form[$question->getId()]->renderError() ?>
                <div class="spacer"></div>
            <?php endforeach;?>
            <button><?php echo __('Submit');?></button>
        </form>
    </div>
</div>
